package br.com.duduso.conferencia_claro_desktop.screens;

import br.com.duduso.conferencia_claro_desktop.components.FrameInterno;
import br.com.duduso.conferencia_claro_desktop.components.SelecaoArquivo;
import java.io.File;
import javax.swing.ButtonGroup;

/**
 *
 * @author duduso
 */
public class TelaGeracaoTxtSerasa extends FrameInterno {

    private final String NOME_PERFIL  = "ATACADISTA";
    private final String CNPJ_EMPRESA = "70963418000180";
    private final String NOME_EMPRESA = "LM COMERCIAL E DIST";

    private ButtonGroup group;

    private File arquivoDBF;
    private File arquivoXLS;

    public TelaGeracaoTxtSerasa() {
            super();
            initComponents();
            agruparRadioButtons();
            configurarValoresDefault();
            limparValores();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel3 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        lbTipoOperacao = new javax.swing.JLabel();
        rbOperacaoInclusao = new javax.swing.JRadioButton();
        rbOperacaoExclusao = new javax.swing.JRadioButton();
        tfNomeArquivo = new javax.swing.JTextField();
        lbNomeArquivo = new javax.swing.JLabel();
        tfNomePerfil = new javax.swing.JTextField();
        lbNomePerfil = new javax.swing.JLabel();
        lbCnpjEmpresa = new javax.swing.JLabel();
        tfNomeEmpresa = new javax.swing.JTextField();
        lbNomeEmpresa = new javax.swing.JLabel();
        lbDiasAtivos = new javax.swing.JLabel();
        cbDiasAtivos = new javax.swing.JComboBox();
        tfCnpjEmpresa = new javax.swing.JFormattedTextField();
        jPanel2 = new javax.swing.JPanel();
        lbArquivoDBF = new javax.swing.JLabel();
        lbPlanilhaClientes = new javax.swing.JLabel();
        tfArquivoDBF = new javax.swing.JTextField();
        tfPlanilhaClientes = new javax.swing.JTextField();
        btSelecionarArquivoDBF = new javax.swing.JButton();
        btSelecionarPlanilhaClientes = new javax.swing.JButton();
        btGerarRemessa = new javax.swing.JButton();
        btFechar = new javax.swing.JButton();

        setBackground(new java.awt.Color(193, 205, 205));
        setBorder(null);
        setPreferredSize(new java.awt.Dimension(952, 564));

        jLabel3.setFont(new java.awt.Font("Arial", 1, 15));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("<html><b>GERAÇÃO DO ARQUIVO DE REMESSAS DO SERASA</b></html>");
        jLabel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        jPanel1.setBackground(new java.awt.Color(193, 205, 205));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true), "DADOS PRINCIPAIS", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12))); // NOI18N

        lbTipoOperacao.setFont(new java.awt.Font("Arial", 0, 12));
        lbTipoOperacao.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbTipoOperacao.setText("<html><b>Tipo da Operação: </b></html>");

        rbOperacaoInclusao.setBackground(new java.awt.Color(193, 205, 205));
        rbOperacaoInclusao.setFont(new java.awt.Font("Arial", 0, 12));
        rbOperacaoInclusao.setSelected(true);
        rbOperacaoInclusao.setText("Inclusão");

        rbOperacaoExclusao.setBackground(new java.awt.Color(193, 205, 205));
        rbOperacaoExclusao.setFont(new java.awt.Font("Arial", 0, 12));
        rbOperacaoExclusao.setText("Exclusão");

        tfNomeArquivo.setFont(new java.awt.Font("Arial", 0, 12));

        lbNomeArquivo.setFont(new java.awt.Font("Arial", 1, 12));
        lbNomeArquivo.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbNomeArquivo.setText("Nome do Arquivo (TXT):");

        tfNomePerfil.setFont(new java.awt.Font("Arial", 0, 12));

        lbNomePerfil.setFont(new java.awt.Font("Arial", 1, 12));
        lbNomePerfil.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbNomePerfil.setText("Nome do Perfil:");

        lbCnpjEmpresa.setFont(new java.awt.Font("Arial", 1, 12));
        lbCnpjEmpresa.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbCnpjEmpresa.setText("CNPJ da Empresa:");

        tfNomeEmpresa.setFont(new java.awt.Font("Arial", 0, 12));

        lbNomeEmpresa.setFont(new java.awt.Font("Arial", 1, 12));
        lbNomeEmpresa.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbNomeEmpresa.setText("Nome da Empresa:");

        lbDiasAtivos.setFont(new java.awt.Font("Arial", 1, 12));
        lbDiasAtivos.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbDiasAtivos.setText("Dias Ativos:");

        cbDiasAtivos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "90", "120", "180", "Indeterminado" }));

        try {
            tfCnpjEmpresa.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##.###.###/####-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lbTipoOperacao, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                            .addComponent(lbDiasAtivos, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cbDiasAtivos, javax.swing.GroupLayout.Alignment.TRAILING, 0, 155, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(rbOperacaoInclusao)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(rbOperacaoExclusao)))
                        .addGap(111, 111, 111))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lbCnpjEmpresa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                            .addComponent(lbNomeArquivo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbNomePerfil, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
                            .addComponent(lbNomeEmpresa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tfNomeEmpresa, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                            .addComponent(tfNomePerfil, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                            .addComponent(tfNomeArquivo, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                            .addComponent(tfCnpjEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(496, 496, 496))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbTipoOperacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(rbOperacaoInclusao)
                    .addComponent(rbOperacaoExclusao))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbDiasAtivos)
                    .addComponent(cbDiasAtivos, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbNomeArquivo)
                    .addComponent(tfNomeArquivo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfNomePerfil, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbNomePerfil))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbCnpjEmpresa)
                    .addComponent(tfCnpjEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfNomeEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbNomeEmpresa))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBackground(new java.awt.Color(193, 205, 205));
        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true), "ARQUIVOS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12))); // NOI18N

        lbArquivoDBF.setFont(new java.awt.Font("Arial", 1, 12));
        lbArquivoDBF.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbArquivoDBF.setText("Arquivo DBF:");

        lbPlanilhaClientes.setFont(new java.awt.Font("Arial", 1, 12));
        lbPlanilhaClientes.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbPlanilhaClientes.setText("Planilha de Clientes (xls):");

        tfArquivoDBF.setEditable(false);
        tfArquivoDBF.setFont(new java.awt.Font("Arial", 0, 12));
        tfArquivoDBF.setDisabledTextColor(new java.awt.Color(5, 5, 5));
        tfArquivoDBF.setEnabled(false);

        tfPlanilhaClientes.setEditable(false);
        tfPlanilhaClientes.setFont(new java.awt.Font("Arial", 0, 12));
        tfPlanilhaClientes.setDisabledTextColor(new java.awt.Color(5, 5, 5));
        tfPlanilhaClientes.setEnabled(false);

        btSelecionarArquivoDBF.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/dbase.png"))); // NOI18N
        btSelecionarArquivoDBF.setText("<html><b>Selecionar</b></html>");
        btSelecionarArquivoDBF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSelecionarArquivoDBFActionPerformed(evt);
            }
        });

        btSelecionarPlanilhaClientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/excel.png"))); // NOI18N
        btSelecionarPlanilhaClientes.setText("<html><b>Selecionar</b></html>");
        btSelecionarPlanilhaClientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSelecionarPlanilhaClientesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbArquivoDBF, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                    .addComponent(lbPlanilhaClientes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(tfArquivoDBF, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
                    .addComponent(tfPlanilhaClientes, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btSelecionarArquivoDBF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btSelecionarPlanilhaClientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(417, 417, 417))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbArquivoDBF)
                    .addComponent(tfArquivoDBF, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btSelecionarArquivoDBF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbPlanilhaClientes)
                    .addComponent(tfPlanilhaClientes, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btSelecionarPlanilhaClientes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        btGerarRemessa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/conferir.png"))); // NOI18N
        btGerarRemessa.setText("<html><b>Gerar Arquivo</b></html>");
        btGerarRemessa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btGerarRemessaActionPerformed(evt);
            }
        });

        btFechar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/close.png"))); // NOI18N
        btFechar.setText("<html><b>Fechar</b></html>");
        btFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btFecharActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 938, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btGerarRemessa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btGerarRemessa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btSelecionarArquivoDBFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelecionarArquivoDBFActionPerformed
            arquivoDBF = SelecaoArquivo.getInstance(".dbf").selecionarArquivo();
            if(arquivoDBF != null){
                    tfArquivoDBF.setText(arquivoDBF.getName());
            }else{
                    tfArquivoDBF.setText(null);
            }
    }//GEN-LAST:event_btSelecionarArquivoDBFActionPerformed

    private void btSelecionarPlanilhaClientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelecionarPlanilhaClientesActionPerformed
            arquivoXLS = SelecaoArquivo.getInstance(".xls").selecionarArquivo();
            if(arquivoXLS != null){
                    tfPlanilhaClientes.setText(arquivoXLS.getName());
            }else{
                    tfPlanilhaClientes.setText(null);
            }
    }//GEN-LAST:event_btSelecionarPlanilhaClientesActionPerformed

    private void btGerarRemessaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGerarRemessaActionPerformed
            
    }//GEN-LAST:event_btGerarRemessaActionPerformed

    private void btFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFecharActionPerformed
            fecharTab();
    }//GEN-LAST:event_btFecharActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btFechar;
    private javax.swing.JButton btGerarRemessa;
    private javax.swing.JButton btSelecionarArquivoDBF;
    private javax.swing.JButton btSelecionarPlanilhaClientes;
    private javax.swing.JComboBox cbDiasAtivos;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lbArquivoDBF;
    private javax.swing.JLabel lbCnpjEmpresa;
    private javax.swing.JLabel lbDiasAtivos;
    private javax.swing.JLabel lbNomeArquivo;
    private javax.swing.JLabel lbNomeEmpresa;
    private javax.swing.JLabel lbNomePerfil;
    private javax.swing.JLabel lbPlanilhaClientes;
    private javax.swing.JLabel lbTipoOperacao;
    private javax.swing.JRadioButton rbOperacaoExclusao;
    private javax.swing.JRadioButton rbOperacaoInclusao;
    private javax.swing.JTextField tfArquivoDBF;
    private javax.swing.JFormattedTextField tfCnpjEmpresa;
    private javax.swing.JTextField tfNomeArquivo;
    private javax.swing.JTextField tfNomeEmpresa;
    private javax.swing.JTextField tfNomePerfil;
    private javax.swing.JTextField tfPlanilhaClientes;
    // End of variables declaration//GEN-END:variables

    private void agruparRadioButtons(){
            this.group = new ButtonGroup();
            this.group.add(rbOperacaoInclusao);
            this.group.add(rbOperacaoExclusao);
    }

    private void configurarValoresDefault(){
            this.tfNomePerfil.setText(NOME_PERFIL);
            this.tfCnpjEmpresa.setText(CNPJ_EMPRESA);
            this.tfNomeEmpresa.setText(NOME_EMPRESA);
    }

    private void limparValores(){
            this.arquivoDBF = null;
            this.arquivoXLS = null;
    }

}
